<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_base_project_school".
 *
 * @property string $id
 * @property string $project_id
 * @property string $school_id
 * @property string $type
 * @property string $contacts
 * @property string $contact_way
 * @property int $del_flag 删除标示
 * @property string $create_by 创建人
 * @property string $create_time 创建时间
 * @property string $update_by 更新人
 * @property string $update_time 更新时间
 * @property int $sequence 排序
 */
class TBaseProjectSchool extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_base_project_school';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['del_flag', 'sequence'], 'integer'],
            [['id', 'project_id', 'school_id', 'create_by', 'update_by'], 'string', 'max' => 36],
            [['create_time', 'update_time'], 'safe'],
            [['type', 'contact_way'], 'string', 'max' => 255],
            [['contacts'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'project_id' => 'Project ID',
            'school_id' => 'School ID',
            'type' => 'Type',
            'contacts' => 'Contacts',
            'contact_way' => 'Contact Way',
            'del_flag' => 'Del Flag',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'sequence' => 'Sequence',
        ];
    }
}
